#include <iostream>
using namespace std;

class Integer {
  private:
    int i;

  public:
    Integer(int x = 0) : i(x) {}
    operator int() { return i; } // 类类型转换函数,将类Integer转换为基本类型int
};

int main() {
    Integer a, b(18);
    cout << a << endl;
    cout << int(b) << endl;

    return 0;
}
